<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="/test20240807/jquery-1.11.3.min.js"></script>
    <script type="text/javascript">
        $(function (){
            var urlParams=new URLSearchParams(window.location.search);
            var u=urlParams.get("u");
            var p=urlParams.get("p");
            if(u==0){
                alert("账号错误")
            }
            if(p==0){
                alert("密码错误")
            }
        })
    </script>
</head>
<body>
<h3>登陆页面</h3>
<form action="success.html" >
账号：<input type="text" name="username">
<br/>
密码：<input type="password" name="password">
<br/>
<input type="submit" value="登录" id="btn">
</form>
</body>
</html>